package com.ttg.common.enums;

import lombok.Getter;

/**
 * Description： 商户维度类型
 * Author: chenyou
 * Date: 2025/10/11 9:24
 * Company: ttg
 * Copyright: Copyright (c) 2025
 */
@Getter
public enum MerchDimTypeEnum {

    活跃商户(0,"活跃商户"),

    全量商户(1,"全量商户"),
    ;

    private int value;

    private String desc;


    MerchDimTypeEnum(int value , String desc){
        this.value = value;
        this.desc = desc;
    }

    public static MerchDimTypeEnum getByVal(int value){
        for(MerchDimTypeEnum curr:MerchDimTypeEnum.values()){
            if(curr.value==value){
                return curr;
            }
        }
        return null;
    }
}
